added profile points, added debug option