adding func + unit tests for poc