add sync require
change example app structure