initial work on jsa refactoring

rebuilding from the ground up