optimization via nodejs module