added common project
moved some functions to shared library