better syncing logic
fixed code name placement
fixed generate key issue
better check for static files