removing main method. todo: add tests instead