added more helping methods, made main non-static, dunno if thats bad