starting to roll in the main business logic; need to use JSON output in view
bad files