add max duration and lowercase properties
some bugfixes