new compile and bug fixes