comments, moved resource parser into own py