using crafty lib