initial convert to real npm module