trimmed unused method, added run method to make executable as script