script fixes, checking for compatibility