added basic constant protection