better support for includes in entity scripts