moving server side into app dir