added line input length safeguard in access_mapper