migrated prototype script to service, added installer