fix type signatures, try out npm scripts