more cleanup and refactoring
add precompiled assets