migrated everything from bash