some changes for npm
added remote class