simplified code - removed boilerplate language - added more production meta