adds label improvements and try catch for compilation