move file manager to core
fix defense checking for genesis