moving methods to utils
moved callbacks to separate file