fixed version flag
fixed bugs related to imports