get rid of appId variable in createApp