fixed warnings and removed useless scripts