collect static and compilemessages