[refactoring] common methods in utilities, fixed api fork'n, namespace