when build script can't finish and an error occurs the package jsons are fucked. We should implement an automatic/manual rollback.