added nameable entitites
added entity based script functions