made app environment-agnostic, closes #79