use named functions rather than nested anonymous functions in project creation