nicer loading of AMS
refactor and use RSpec