some fixes
added 2 helper scripts