cleanup app code