move parsing of properties to it's own function
parse the properties