seems to work locally now - ready for aws