created .meta files

also fixed the issue that was creating a flag while the application was
exiting
created basic base behaviour